<form name="register" action="" method="get">
  <input type="text" name="uname" value=""/><br>
  <input type="email" name="email" value=""/><br>
  <input type="password" name="password" value=""/><br>

  <a  onClick="frmSubmit()" href="javascript:void(0);">Click Here to Submit</a>
</form>

<script type="text/javascript">
  function frmSubmit()
  {
    document.register.action = 'http://google.com';
    document.register.method = 'post';
    document.register.submit();
  }
</script>
